package com.fg.estate.service;

import com.fg.estate.bean.Role;

import java.util.List;
import java.util.Map;

/**
 * @author 丰哥
 * 2022/10/12
 * 角色的业务层
 */
public interface RoleService {

    // 查询所有的角色和角色的权限
    List<Map<String, Object>> selectRoleAndPermissions() throws Exception;

    void insertRole(String rname, long[] pids) throws Exception;

    // 查询全部角色
    List<Role> selectAll() throws Exception;

    // 根据编号查询
    Role selectById(int roleId) throws Exception;
}
